home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / pc / Open Me for REALbasic 3 / REALbasic 3.2 / Goodies / REAL Software / REALbasic Plug-ins SDK / Includes / winheader.h < prev   
Encoding:
Text File  |  2001-01-24  |  922 b   |  51 lines

  1. // WinHeader.h
  2. //
  3. // This file declares macros and functions needed for Win32 compilation
  4. // of plugins using the REALbasic Plugin SDK.  This file should be
  5. // set as the prefix file for your Windows (x86) target.  In addition,
  6. // you'll need to add the "Win32-x86 Support" folder to the system
  7. // access paths.
  8. //
  9. // © 1997-2001 REAL Software Inc. -- All Rights Reserved
  10.  
  11. #ifndef WINHEADER_H
  12. #define WINHEADER_H
  13.  
  14. #include <Win32Headers.mch>
  15.  
  16. namespace QT {
  17.     #include <QTML.h>
  18.     #include <Movies.h>
  19. }
  20.  
  21. typedef unsigned char Boolean;
  22. typedef char *Ptr;
  23. struct Rect
  24. {
  25.     short top, left, bottom, right;
  26. };
  27.  
  28. struct Point
  29. {
  30.     short v, h;
  31. };
  32.  
  33. #ifdef nil
  34.   #undef nil
  35. #endif
  36. #define nil 0
  37.  
  38. #ifndef true
  39.     #define true 1
  40.     #define false 0
  41. #endif
  42.  
  43. long TickCount(void);
  44. Boolean PtInRect(const Point &pt, Rect *rBounds);
  45. Boolean SectRect(Rect *rect1, Rect *rect2, Rect *resultRect);
  46. Ptr NewPtr(int len);
  47. void DisposePtr(Ptr p);
  48.  
  49. #endif
  50.  
  51.